<div class="inner clearfix">
                        <!--Start Banner-->
                        
                        
                        <div id="opretMaleropgave" class="mart10 bor-std w975">
                        <?php $info = getArticle(24);
							  $images = json_decode($info->images);
						?>
                                               
                            <div class="illu fll"><img src="<?php echo $images->image_intro;?>" alt="" /></div>
                            <?php
							
								
								
								
								// catid =16 --> Forside Opret maleropgave
								$items = getArticles(16);
								$slug = $items[0]->id.':'.$items[0]->alias;
								$catslug =$items[0]->catid ? $items[0]->catid .':'.$items[0]->category_alias : $items[0]->catid;
								
								$readmore = JRoute::_(ContentHelperRoute::getArticleRoute($slug, $catslug));
								
							?>
                            <div class="desc fll">
                            	<h1>Opret maleropgave</h1>
                                <p class="info">
                                	<?php echo $items[0]->introtext; ?>
                                </p>
                                <p><a class="button opret-btn" href="index.php?option=com_jobs&view=jobs">Opret opgave her</a></p>
                                <p><a class="more" href="<?php echo $readmore;?>">Læs mere...</a></p>
                            </div>
                            <?php $info = getArticle(25);
							  $images = json_decode($info->images);
						?>
                            
                            <div class="illu flr"><img src="<?php echo $images->image_intro;?>" alt="" /></div>
                        </div>
                        
                        <div class="extra-blocks w975 mart10">
                        	<div class="opslaede-opgaver bor-std fll marr10">
                            	<h3>Fem opslåede opgaver:</h3>
                                <?php 
								  $db =& JFactory::getDBO(); 
								  $query = "SELECT * FROM #__jobs WHERE featured = 1 and state = 1 order by id  desc limit 5";
								  $db->setQuery( $query );
								  $row = $db->loadObjectList();
								 // JLoader::import('joomla.application.component.model'); 
								 //JLoader::import( 'items', JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_uworks' . DS . 'models' );
								 JModel::addIncludePath(JPATH_ROOT.'/components/com_jobs/models', 'myjobs');
								 $items_model = JModel::getInstance( 'myjobs', 'JobsModel');
											  
								 //print_r($items_model->getArrayCityDanish());
									
								?>
                                   <script type="text/javascript">
								   function getInfo(info_id) {
										$.ajax({
											type: 'POST',
											url: 'index.php?option=com_jobs&tmpl=3dmaler&view=jobdetail&jid='+info_id,
											dataType: 'html',		
											beforeSend: function() {												
											},
											complete: function() {
												//$("#popup-01").show();
												$("#btnpupfr").click();
											},
											success: function(html) {
												
												$("#hiddenOpgaverContent").html(html);
												
											}
										});
									}


								  
                                   </script>         
                                <ul>
                                	<?php 
									 for($i=0;$i<count($row);$i++)
										  {	
										    
											  $items_job = JModel::getInstance( 'myjobs', 'JobsModel');
											  $ttitle = $items_job->trunchtml( strip_tags($row[$i]->title),15,'...') 
		
										  ?>
                                          <li>
                                          <a onclick="getInfo(<?php echo $row[$i]->id;?>)" >
										  <?php echo $ttitle;?>
                                          </a> - <span><?php $city_name =  $items_model->getNameCityDanish($row[$i]->postcode); if($city_name=='Resten af Sjælland, Lolland-Falster og Møn')$city_name = 'Resten af Sjælland';
										  echo $city_name;
										  ?></span></li>
                                          <?php
										  }
									?>                                  
                                </ul>
                                <a class="button thickbox flr" id="btnpupfr" href="#TB_inline?height=auto&width=650&inlineId=hiddenOpgaverContent" style="display:none;"></a>
                                <div id="hiddenOpgaverContent" style="display:none;">
                                
                                </div>
                            </div>
                            <?php
								//dunglt get Forside , category_id : 13
								$items = getArticles(13);
								$images = json_decode($items[0]->images);								
							?>
                            <div class="quotes bor-std fll marr10">
                            	<img src="<?php echo $images->image_intro;?>" width="145" height="137" alt="" />
                                <div class="desc">
                                    <h3><?php echo $items[0]->title;?></h3>
                                    <?php echo $items[0]->introtext;?>
                            	</div>
                            </div>
                            
                            <div class="kunder-service bor-std fll">
                            	<h3 class="blue-txt">Kundeservice</h3>
                                <p class="mart15"><a href="index.php?option=com_contact&view=contact&id=1"><img src="templates/3dmaler/img/kunder-service-icon.png" alt="" /></a></p>
                            </div>
                            
                        </div>
                        
                    </div>  